package com.dps.omc.shell;

import javax.servlet.http.HttpSession;
import javax.websocket.HandshakeResponse;
import javax.websocket.server.HandshakeRequest;

/**
 * Created by lip on 2016-07-15.
 */
public class ServerEndpointConfig extends javax.websocket.server.ServerEndpointConfig.Configurator{

    @Override
    public void modifyHandshake(javax.websocket.server.ServerEndpointConfig config,
                                HandshakeRequest request,
                                HandshakeResponse response)
    {
        String serverId = request.getParameterMap().get("serverId").get(0);
        config.getUserProperties().put("serverId",serverId);
    }
}
